package com.cz.ssyx.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cz.ssyx.model.acl.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {

    //获取角色的权限信息
    Map<String, Object> getRolePermission(Long roleId);

    //获取权限(菜单/功能)列表
    List<Permission> queryAllPermission();

    //递归删除菜单
    void removeChildById(Long id);

    //为角色分配权限
    void doRolePermission(Long roleId, List<Long> permissionId);
}
